package com.ztgf.commodity.models.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ztgf.commodity.models.dto.BrandInfoDTO;
import com.ztgf.commodity.models.dto.CommodityCategoryDTO;
import com.ztgf.commodity.models.dto.CommodityLabelDTO;
import com.ztgf.commodity.models.dto.CommodityUnitDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class CategoryMaintainRecordVO implements Serializable {

    @ApiModelProperty(value = "类目维护表id")
    private Long id;
    @ApiModelProperty(value = "一级类目")
    private CommodityCategoryDTO oneCategory;
    @ApiModelProperty(value = "二级类目")
    private CommodityCategoryDTO twoCategory;
    @ApiModelProperty(value = "三级类目")
    private CommodityCategoryDTO sCategory;
    @ApiModelProperty(value = "品牌信息")
    private BrandInfoDTO brandInfo;
    @ApiModelProperty(value = "销售属性")
    private List<CommoditySpecificationVO> salesAttributeCollection;
    @ApiModelProperty(value = "参数属性")
    private List<CategoryParamBean> parameterAttributeCollection;
    @ApiModelProperty(value = "单位属性")
    private List<CommodityUnitDTO> unitCollection;
    @ApiModelProperty(value = "标签属性")
    private List<CommodityLabelDTO> labelCollection;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
